#include<bits/stdc++.h>

using namespace std;

int main() {
    for (int a, b, c; cin >> a >> b >> c;) {
        cout << a / b << ".";
        a %= b;
        vector<int> v;
        while (v.size() <= c) {
            a *= 10;
            v.emplace_back(a / b);
            a %= b;
        }
        int cs = (v.back() >= 5) ? 1 : 0;
        v.pop_back();
        for (int i = v.size() - 1; i >= 0 && cs; i--) {
            int temp = v[i] + cs;
            v[i] = temp % 10;
            cs = temp / 10;
        }
        copy(v.begin(), v.end(), ostream_iterator<int>(cout, ""));
        cout << endl;
    }
    return 0;
}